home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2129 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  818 b 

  1. From: SimsGW@msn.com (Gary Sims)
  2. Subject: RE: Draw that ARROW for me...PLEASE!!!
  3. Date: 16 Jan 96 02:38:15 -0800
  4. References: <1996Jan11.221043.16630@wvnvms>
  5. Message-ID: <00001a81+00008e43@msn.com>
  6. Path: news.msn.com!msn.com
  7. Newsgroups: comp.lang.c++
  8. Organization: The Microsoft Network (msn.com)
  9.  
  10. Without a primitive, you'll have to code it yourself. An arrow is 
  11. three lines. Draw the real line portion first. Then compute the angle 
  12. of the head outline as thirty degrees to either side of the line 
  13. itself and then draw the head a two short lines -- usually three 
  14. pixels long gives a satisfactory effect. Closing the head outline 
  15. with a fourth line connecting the "back" end of the two short lines 
  16. is optional. Personally, I think it looks better without closing the 
  17. outline.
  18.  
  19. Gary W. Sims
  20. Stonehaven Laboratory
  21.  
  22.